package com.example.speeddating.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

/**
 * @author tina
 * @since 2023-07-21 08:00:57
 */
@Getter
@Setter
@TableName("match")
public class Match implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date createTime;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 匹配的id
     */
    private Long matchId;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    @TableLogic
    @JsonIgnore
    private Integer deleted;

    private Integer isRead;


}
